package com.sunwayworld.basemodule.common.errcode.resource;

import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@RequestMapping("/secure/basemodule/common/errcode")
public interface ErrCodeResource{
    @Log(
            value = "通用查询",
            type = LogType.SELECT
    )
    @RequestMapping(
            value = {"/queries"},
            method = {RequestMethod.POST}
    )
    Page<Map<String,String>> selectPagination(RestJsonWrapperBean wrapperBean);
}
